import os
# set keyword
SearchKeyWord = "#include"
# get file list
cwd = os.getcwd()
FileList = os.listdir(cwd)
# filter out c source code
C_lang_src = [file for file in FileList if ".c" in file]

for SrcCode in C_lang_src:
    f = open("{FileName}".format(FileName = SrcCode), "r")
    for sentence in f:
        if SearchKeyWord in sentence:
            print(sentence)
